package framework.util.fileUpload.service.impl;

import framework.util.fileUpload.bo.SysFileModule;
import framework.util.fileUpload.dao.ISysFileModuleDao;
import framework.util.fileUpload.service.SysFileModuleService;
import framework.util.layui._LayuiUtil;
import framework.util.queryFilter.service.impl.IBaseServiceImpl;
import javax.annotation.Resource;

import framework.util.queryFilter.service.impl.QueryFilter;
import framework.util.queryFilter.vo.Where;
import org.springframework.stereotype.Service;

@Service("SysFileModuleService")
public class SysFileModuleServiceImpl extends IBaseServiceImpl<SysFileModule, Integer> implements SysFileModuleService {

    @Resource
    private ISysFileModuleDao dao;

    @Override
    public SysFileModule getByTableNameAndModuleEname(String tableName, String moduleEname) {
        QueryFilter filter = new QueryFilter(_LayuiUtil.FIRST_PAGE, Integer.MAX_VALUE);
        filter.where(SysFileModule.TABLE_NAME, Where.eq, tableName);
        filter.where(SysFileModule.MODULE_ENAME, Where.eq, moduleEname);
        return this.get(filter);
    }
}

